Okay this is the first time that I have made a modification to any code and posted it online for others to use, so please be patient if you could.
I apreciate all comments, suggestions and advice.
First credit goes to Dew from Alsacreations
First thing you will need to do is download my Repacked version of Dew Player wich has directory listing for AEF root and only necessary files
The Repacked archive can be found @mediafire.com | @fileden
Once downloaded, upload the aefdewplayer folder to your forum root directory
Code Edits for DEWPLAYER Classic [Demo can be found HERE]
Open ./main/functions/bbc_functions.php and search/find the following piece of code (in my editor it is on lines 29-38
PHP Code //This function will take care to format the text only.
function normal_bbc($text){
global $globals;
if(!$globals['parsebbc']){
return $text;
}
After
on a new line after add the following piece of code
PHP Code // DEWPLAYER CLASSIC BBcode Start
$text = preg_replace("/[mp3c]([^"[<>]+?)[/mp3c]/Usi",
"<object type="application/x-shockwave-flash" data="aefdewplayer/dewplayer.swf" width="200" height="20" id="dewplayer" name="dewplayer">
<param name="movie" value="aefdewplayer/dewplayer.swf" />
<param name="flashvars" value="mp3=$1" />
<param name="wmode" value="transparent" />
</object>", $text);
// DEWPLAYER CLASSIC BBcode END
To Post a mp3 in this player to a post all you have to do after the above code edits is (without *'s)
Code
[mp3c*]http://yourhost.com/your.mp3[/mp3c*]
Code Edits for DEWPLAYER Bubble [DEMO can be found HERE]
Open ./main/functions/bbc_functions.php and search/find the following piece of code (in my editor it is on lines 29-38
PHP Code //This function will take care to format the text only.
function normal_bbc($text){
global $globals;
if(!$globals['parsebbc']){
return $text;
}
After
on a new line after add the following piece of code
PHP Code // DEWPLAYER BUBBLE BBcode Start
$text = preg_replace("/[mp3b]([^"[<>]+?)[/mp3b]/Usi",
"<object type="application/x-shockwave-flash" data="aefdewplayer/dewplayer-bubble.swf" width="250" height="65" id="dewplayer" name="dewplayer">
<param name="movie" value="aefdewplayer/dewplayer-bubble.swf" />
<param name="flashvars" value="mp3=$1" />
<param name="wmode" value="transparent" />
</object>", $text);
// DEWPLAYER BUBBLE BBcode END
To Post a mp3 inthe bubble player to a post all you have to do after the above code edits is (without the *'s)
Code [mp3b*]http://yourhost.com/your.mp3[/mp3b*]
I have included a short beat that i have made in the mp3 folder for you to test if it is all working smoothly
to test this just copy the following code into a post (with out the *'s and changing "http://your.url/youraefdirectory" to what ever yours may be)
Code [mp3c*]http://your.url/youraefdirectory/aefdewplayer/mp3/dsharpbeattest.mp3[/mp3c*]
----------------------- http://dsharpcode.co.cc/aef/ |